package com.glsc.ngateway.platform.service.itflow.flowstrategy.equipmentApply.taskPostHandler;

import com.glsc.ngateway.common.api.flowable.dto.task.doTaskParam.equipment.EquipmentRejectParamDto;
import com.glsc.ngateway.common.base.enums.itflow.ITFlowTaskEnum;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import javax.validation.constraints.NotNull;

/**
 * 信息技术总部基础架构部负责人
 * @author xuchang
 */
@Component
public class EAStep4NetworkSecurityTaskPostHandlerAudit implements IEquipmentApplyTaskPostHandlerAudit {

    @Resource
    private EAStepHandlerHelper handlerHelper;

    /**
     * 驳回后置处理方法
     * @param passParam
     * @param operator
     */
    @Override
    public void rejectAfterHandle(@NotNull EquipmentRejectParamDto passParam, @NotNull String operator) {
        handlerHelper.afterHandle(passParam, operator);
    }

    @Override
    public String getTaskDefinitionKey() {
        return ITFlowTaskEnum.APPLY_FLOW_NET_WORK_SECURITY_TASK.getTaskKey();
    }
}
